<?
/****************************************************************************
	Master Configuraton Files
	
	Author: Steven Miles - steve@stevenmiles.com.au

	Version : 1.0.100209

*****************************************************************************/


class classConfig {
	public function __construct($path='config/config.ini') {
		if (is_file($path)) {
			$config = parse_ini_file($path,true);
			foreach ($config AS $section=>$options) {
				$this->$section = (object)$options;				
			}
		} else {
			error_log('Unable to find server configuration file at '.$path,0);
			header('Location: ./install.php');
			exit();			
		}
	}
}
?>